<template>
	<view>
		<!-- <view :class="yellow?'tag-contaienr tag-color':'tag-contaienr'"> -->
			<view :class="[tagContainerClass, tagColorClass]">
			<view>
				{{ tagName  }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"orderStatusTag",
		data() {
			return {
				
			};
		},
		computed: {
			tagContainerClass() {
				return 'tag-container';
			},
			tagColorClass() {
				if (this.tagColor === 'default') {
					return '';
				} else if (this.tagColor === 'blue') {
					return 'tag-color-blue';
				} else if (this.tagColor === 'green') {
					return 'tag-color-green';
				} else if (this.tagColor === 'yellow') {
					return 'tag-color-yellow';
				}
			}
		},
		props: {
			tagName: {
				type: String,
				required: true
			},
			tagColor: {
				type: String,
				default: 'default' // 默认颜色为 'default'
			},
			yellow: {
				type: Boolean,
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tag-contaienr{
		display: flex;
		border-radius: 5rpx;

		align-items: center;
		justify-content: center;

	}
	.tag-color-yellow{
		color: #FC9808;
		padding: 5rpx 20rpx;
		font-size: 12px;
		border: 1px solid #EEAC4C;
		background-color: #FFFBF0;
	}
	.tag-color-blue{
		color: #34B1FF;
		padding: 5rpx 20rpx;
		font-size: 12px;
		border: 1px solid #8BD3FF;
		background-color: #DDF2FF;
	}
	.tag-color-green{
		color: #34B1FF;
		padding: 5rpx 20rpx;
		font-size: 12px;
		border: 1px solid #8BD3FF;
		background-color: #DDF2FF;
	}

</style>